package sunyu.service.shiro.impl;

import org.springframework.stereotype.Service;
import sunyu.mapper.shiro.UserMapper;
import sunyu.mapper.shiro.pojo.User;
import sunyu.service.shiro.UserService;

import javax.annotation.Resource;

@Service("userService")
public class UserServiceImpl implements UserService {

    @Resource(name = "userMapper")
    private UserMapper userMapper;

    @Override
    public Integer insert(User user) {
        return userMapper.insert(user);
    }
}
